package com.xmut.mall.member.controller;

import com.xmut.mall.member.feign.CouponFeignService;
import com.xmut.mall.member.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private CouponFeignService couponFeignService;

    @GetMapping("/testFeignReceive")
    public R testFeignReceive(){
        R r = couponFeignService.testFeign("测试进行feign远程调用");

        return R.ok().put("result",r.get("result"));
    }
}
